<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  </head>
  <body>
    <div>
      <div>
	<h1>Vspace</h1>
	{{if 'REMOTE_USER' not in environ}}
	<div id="login">
	  <form id="login-form" action="login" method="post">
	    <label for="login-passurl">PassURL:</label>
	    <input id="login-passurl" type="text" name="passurl" />
	    <a href="javascript:(function(){document.getElementById('login-form').submit();})();undefined;">login</a>
	  </form>
	</div>
	{{else}}
	<div>
	  logged in as <a href="people/{{environ['REMOTE_USER']}}">{{environ['REMOTE_USER']}}</a>
	  <a href="signout">Sign out</a>
	</div>
	{{endif}}
      </div>
    </div>
  </body>
</html>
